netsuite-js

RecordRef

declaration
RecordRef ->RecordRef

var RecordRef = module.exports = function RecordRef() {
  BaseObject.call(this);

internalId

property
this.internalId

@member {String|Number}

this.internalId = null;

externalId

property
this.externalId

@member {String|Number}

this.externalId = null;
};

util.inherits(RecordRef, BaseObject);

getAttributes

method
RecordRef.prototype.getAttributes()

@override

RecordRef.prototype.getAttributes = function() {
  var attrs = {
    type: this.type,
    'xsi:type': 'platformCore:RecordRef'
  };

  if (this.internalId) {
    attrs.internalId = this.internalId;
  }

  if (this.externalId) {
    attrs.externalId = this.externalId;
  }

  return attrs;
};

getUnserializablePropertyNames

method
RecordRef.prototype.getUnserializablePropertyNames()

@override

RecordRef.prototype.getUnserializablePropertyNames = function() {
  return ['internalId', 'externalId', 'type'];
};

getSOAPType

method
RecordRef.prototype.getSOAPType()

@override

RecordRef.prototype.getSOAPType = function() {
  // Always baseRef
  return 'baseRef';
};